const mongoose = require('./db')
const Schema = mongoose.Schema
const ChapterSchema = new Schema({
    // 章名称
    name: {
        type: String,
        required: true
    },
    // 节标题数组
    subs_1: {
        type: [String],
        required: true
    },
    // 专业类型 建筑工程，市政，水利水电，公路  1111
    subjectType: {
        type: Number,
        required: true
    }
})

module.exports = ChapterModel = mongoose.model('pdf_sub1', ChapterSchema)
